home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_10
/
1010018b
< prev
next >
Wrap
Text File
|
1992-08-11
|
242b
|
16 lines
Listing 7 -- the file strcpy.c
/* strcpy function */
#include <string.h>
char *(strcpy)(char *s1, const char *s2)
{ /* copy char s2[] to s1[] */
char *s = s1;
for (s = s1; (*s++ = *s2++) != '\0'; )
;
return (s1);
}